package com.module.app.adapter.holder;

import android.view.ViewGroup;
import android.widget.TextView;

import androidx.databinding.ViewDataBinding;

import com.module.app.bean.ListData;
import com.module.base.base.adapter.BaseViewHolder;
import com.module.app.R;

public class ListPopHolder extends BaseViewHolder<ListData, ViewDataBinding> {

    TextView tv_name;

    public ListPopHolder(ViewGroup parent) {
        super(parent, R.layout.app_item_list_pop_data);
    }

    @Override
    public void initView() {
        super.initView();
        tv_name = itemView.findViewById(R.id.tv_name);
    }

    @Override
    protected void convert(ListData bean, int position) {
        tv_name.setText(bean.getName());
        tv_name.setSelected(bean.isSelect());
    }
}
